<%-- 
    Document   : newCompany
    Created on : May 14, 2010, 5:22:01 PM
    Author     : longdm
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%--
    This file is an entry point for JavaServer Faces application.
--%>
<f:view>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>New company Page</title>
    </head>
    <body>
        <h1><h:outputText value="Register a new company" /></h1>
        <img src="images/FutureCar.jpg" alt="images" height="269" width="619"/>
        <h:form>
            <h:panelGrid columns="2">
                <h:outputText value="Company name:" />
                <h:inputText value="#{CompanyController.currentCompany.companyName}"/>

                <h:outputText value="Company Address:" />
                <h:inputText value="#{CompanyController.currentCompany.address}"/>

                <h:outputText value="Company contact number:" />
                <h:inputText value="#{CompanyController.currentCompany.cell}"/>

                <h:commandButton action="#{CompanyController.newCompany}" value="Register"/>
                <h:commandButton action="companyManager" value="Cancel"/>
            </h:panelGrid>
        </h:form>
    </body>
</html>
</f:view>
